package main

import (
	"fmt"
)

func main6() {
	sum := 0
	for i := 0; i < 10; i++ {
		sum += i
	}
	fmt.Println(sum)

	var i int = 5

	for i >= 0 {
		i = i - 1
		fmt.Printf("The variable i is now: %d\n", i)
	}

	arr := [...]int{6, 7, 8}
	for i, v := range arr {
		fmt.Println(i, v)
	}
}
